package com.lst.tools.custom.constants;

/**
 * 关于token的常量类
 *
 * @author: Frank
 * @date: 2019/09/24 13:51
 * @version: V1.0
 */
public interface TokenConstants {
    String ACCESS_TOKEN_HEADER = "access-token";
    String ACCESS_TOKEN_HEADER_PREFIX = "Bearer ";
    String REFRESH_SCOPE = "refresh";
    String ACCESS_SCOPE = "access";
    String TICKET = "ticket";
    String TICKET_SCOPE = "ticket";

    String EXPIRE_IN = "expireIn";
    String SCOPE_KEY = "scope";
    String TICKET_RANDOM_KEY = "random";
    /**
     * 单位秒
     */
    int EXPIRE_IN_DEFAULT = 604800;

    String USER_ID_KEY = "user_id";
    String USER_TOKEN_REDIS_KEY = "user_token_redis_key";
}
